<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Writes data to the large object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oci-lob.truncate.html">OCI-Lob::truncate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oci-lob.writetemporary.html">OCI-Lob::writeTemporary</a></div>
 <div class="up"><a href="class.OCI-Lob.html">OCI-Lob</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="oci-lob.write" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">OCI-Lob::write</h1>
  <p class="verinfo">(PHP 5, PECL OCI8 &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">OCI-Lob::write</span> &mdash; <span class="dc-title">Writes data to the large object</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-oci-lob.write-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>OCI-Lob::write</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$length</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Writes data from the parameter <em><code class="parameter">data</code></em> into the
   current position of LOB&#039;s internal pointer.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-oci-lob.write-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">data</code></em></dt>

     <dd>

      <p class="para">
       The data to write in the LOB.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">length</code></em></dt>

     <dd>

      <p class="para">
       If this parameter is given, writing will stop after 
       <em><code class="parameter">length</code></em> bytes have been written or the end of
       <em><code class="parameter">data</code></em> is reached, whichever comes first.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-oci-lob.write-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the number of bytes written  或者在失败时返回 <strong><code>FALSE</code></strong>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-oci-lob.write-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><a href="oci-lob.read.html" class="xref">OCI-Lob::read</a></li> 
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oci-lob.truncate.html">OCI-Lob::truncate</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oci-lob.writetemporary.html">OCI-Lob::writeTemporary</a></div>
 <div class="up"><a href="class.OCI-Lob.html">OCI-Lob</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
